package com.ruoyi.basedata.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.TreeEntity;

/**
 * 结算组织对象 t_oms_orgunit
 * 
 * @author xiefeng
 * @date 2023-02-17
 */
public class OmsOrgunit extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 父id */
    private Long parentid;

    /** 组织编码 */
    @Excel(name = "组织编码")
    private String orgnumber;

    /** 父组织编码 */
    @Excel(name = "父组织编码")
    private String parentorgnumber;

    /** 组织名称 */
    @Excel(name = "组织名称")
    private String orgname;

    /** 中转仓编码 */
    @Excel(name = "中转仓编码")
    private String transferwhnumber;

    /** 中转仓名称 */
    @Excel(name = "中转仓名称")
    private String transferwhname;

    /** 级次 */
    @Excel(name = "级次")
    private Long level;

    /** 长编码 */
    @Excel(name = "长编码")
    private String longnumber;

    /** 一级组织编码 */
    @Excel(name = "一级组织编码")
    private String firstorgnumber;

    /** 一级组织名称 */
    @Excel(name = "一级组织名称")
    private String firstorgname;

    /** 是否分子公司 */
    @Excel(name = "是否分子公司")
    private Long issub;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public Long getParentid() {
        return parentid;
    }

    public void setParentid(Long parentid) {
        this.parentid = parentid;
    }

    public void setOrgnumber(String orgnumber)
    {
        this.orgnumber = orgnumber;
    }

    public String getOrgnumber() 
    {
        return orgnumber;
    }
    public void setParentorgnumber(String parentorgnumber) 
    {
        this.parentorgnumber = parentorgnumber;
    }

    public String getParentorgnumber() 
    {
        return parentorgnumber;
    }
    public void setOrgname(String orgname) 
    {
        this.orgname = orgname;
    }

    public String getOrgname() 
    {
        return orgname;
    }
    public void setTransferwhnumber(String transferwhnumber) 
    {
        this.transferwhnumber = transferwhnumber;
    }

    public String getTransferwhnumber() 
    {
        return transferwhnumber;
    }
    public void setTransferwhname(String transferwhname) 
    {
        this.transferwhname = transferwhname;
    }

    public String getTransferwhname() 
    {
        return transferwhname;
    }
    public void setLevel(Long level) 
    {
        this.level = level;
    }

    public Long getLevel() 
    {
        return level;
    }
    public void setLongnumber(String longnumber) 
    {
        this.longnumber = longnumber;
    }

    public String getLongnumber() 
    {
        return longnumber;
    }
    public void setFirstorgnumber(String firstorgnumber) 
    {
        this.firstorgnumber = firstorgnumber;
    }

    public String getFirstorgnumber() 
    {
        return firstorgnumber;
    }
    public void setFirstorgname(String firstorgname) 
    {
        this.firstorgname = firstorgname;
    }

    public String getFirstorgname() 
    {
        return firstorgname;
    }

    public Long getIssub() {
        return issub;
    }

    public void setIssub(Long issub) {
        this.issub = issub;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("parentid", getParentid())
            .append("orgnumber", getOrgnumber())
            .append("parentorgnumber", getParentorgnumber())
            .append("orgname", getOrgname())
            .append("transferwhnumber", getTransferwhnumber())
            .append("transferwhname", getTransferwhname())
            .append("level", getLevel())
            .append("longnumber", getLongnumber())
            .append("firstorgnumber", getFirstorgnumber())
            .append("firstorgname", getFirstorgname())
            .append("issub", getIssub())
            .toString();
    }
}
